package com.ktjy.service.impl;

import com.ktjy.pojo.SysRole;
import com.ktjy.mapper.SysRoleMapper;
import com.ktjy.service.ISysRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hjy
 * @since 2025-01-09
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements ISysRoleService {
    @Resource
    SysRoleMapper sysRoleMapper;

    @Override
    public List<SysRole> findRoles() {
        return sysRoleMapper.selectList(null);
    }
}
